﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Kaiser.Domains;

namespace Kaiser.Modules.Core.Aggregates.Product
{
    public class Product : EntityBase<Product>
    {
        public string ProductID { get; set; }
 
        public string ProductName { get; set; }
        public string ProductCode { get; set; }
        public string Spec { get; set; }
        public string SearchCode { get; set; }
        public string UnitID { get; set; }
        public string UnitName { get; set; }

        public AdvancedBaseData Type
        {
            get; set;
        }
        public string InPrice { get; set; }
        public string OutPrice { get; set; }
        public string Price { get; set; }
        public string WholesalePrice { get; set; }
        public string NetPrice { get; set; }
        public int InitStock { get; set; }
        public string InitAmount { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public int CurStock { get; set; }
        public string IsLocal { get; set; }
        public string IsDisable { get; set; }
        public string IsDelete { get; set; }
        public string SyncState { get; set; }
        public Account Account { get; set; }
        public DateTime? CreateDate { get; set; }
        public DateTime? LastUpdateDate { get; set; }
        public string Remark { get; set; }
        public string SecUnitID { get; set; }
        public string SecUnitName { get; set; }
        public string Coefficient { get; set; }
        public string IsSend { get; set; }
        public string IsUp { get; set; }
        public string IsEdit { get; set; }
        public string IsSend_CurStock { get; set; }
        public string MinPicture { get; set; }



        public void UpdateCurStock(int i)
        {

        }

    }
}
